//
//  FCSDKConfig.h
//  FCSDK
//
//  Created by ZhouYou on 2022/3/28.
//
 
#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
#import "FCSDKSingleton.h"

NS_ASSUME_NONNULL_BEGIN

@class UIColor;
@class FCSDKPoint_config;

@interface FCSDKConfig : FCSDKSingleton<NSCoding>

/**
 FCSDKConfig 单例对象
 */
+ (instancetype)instance;

/**域名，http://或者https://开头 (若有端口则含端口)
 一般会在导航组件加载配置后根据配置设定
 */
@property (nonatomic, copy) NSString *domain;

@property (nonatomic, copy) NSString *version_name;

/**备用域名1，http://或者https://开头 (若有端口则含端口)
 默认取值为domain，可单独重新设置，设置后取值为新数据
 */
@property (nonatomic, copy) NSString *domain_exp1;

/**备用域名2，http://或者https://开头 (若有端口则含端口)
 默认取值为domain，可单独重新设置，设置后取值为新数据
 */
@property (nonatomic, copy) NSString *domain_exp2;

/**站点code
 一般会『FCSDKConfig.plist』文件中读取
 */
@property (nonatomic, copy) NSString *siteCode;

/**
 主题色，默认wihteColor，一般在导航组件加载配置后由配置数据而定，可能为空
 */
@property (nonatomic, strong) UIColor *themeColor;
/**
  
 二级界面头部文字，默认跟随一级版面配置，一般在导航组件加载配置后由配置数据而定，可能为空
 */
@property (nonatomic, strong) UIColor *secondHeadColor;
/**
 二级界面头部背景色，默认主题色跟随一级版面配置，一般在导航组件加载配置后由配置数据而定，可能为空
 */
@property (nonatomic, strong) UIColor *secondHeadBg;
/**
 二级界面使用相同配置
0，否
1，是
 */
@property (nonatomic, assign) NSInteger secondConfig;
 
/**
 状态栏文字样式
 statusTintColorType=0,UIStatusBarStyleDefault
 statusTintColorType=1,UIStatusBarStyleLightContent
 
 */
@property (nonatomic, assign) NSInteger statusTintColorType;
/**
 状态栏文字颜色
 */
@property (nonatomic, strong) NSString * statusTintColor;
/**
 导航控制器背景颜色，默认与themeColor一致，当navigationBarBackgroundType为0时，对应navigationBarBackgroundValue取到的UIColor
 */
@property (nonatomic, strong) UIColor *navigationBarTintColor;

/**
 导航控制器背景颜色值类型:0：颜色RGB值，1：图片网络链接
 */
@property (nonatomic, assign) NSInteger navigationBarBackgroundType;

/**
 导航控制器背景颜色值,值类型参照navigationBarBackgroundType字段
 */
@property (nonatomic, strong) NSString *navigationBarBackgroundValue;

/**
 导航控制器的图片，navigationBarBackgroundType = 1才有值
 */
@property (nonatomic, strong) UIImage *navigationBarBackgroundImage;


/**
 导航控制器文字颜色，默认为blackColor
 */
@property (nonatomic, strong) UIColor *navigationTintColor;

/**
 底部导航控制器文字颜色，默认为themeColor
 */
@property (nonatomic, strong) UIColor *tabBarTintColor;

/*JPush推送相关key，框架使用
 */
@property (nonatomic, copy) NSString *jpushAppkey;
@property (nonatomic, copy) NSString *jpushChannel;
@property (nonatomic, copy) NSString *registrationID;

//@property (nonatomic, strong) FCSDKPoint_config *activity;
//@property (nonatomic, strong) FCSDKPoint_config *burst;
//@property (nonatomic, strong) FCSDKPoint_config *info;
@property (nonatomic, strong) FCSDKPoint_config *interest;// 兴趣圈
@property (nonatomic, strong) FCSDKPoint_config *live;
@property (nonatomic, strong) FCSDKPoint_config *matrix;
@property (nonatomic, strong) FCSDKPoint_config *video;
@property (nonatomic, strong) NSDictionary *point_config;

 

/**
 根据name获取配置于『FCSDKConfig.plist』文件中的自定义配置数据
 */
- (NSDictionary *)configWithKey:(NSString *)key;


@property (nonatomic, strong) NSDictionary *userInfo;
 
@end
/// 积分配置
@interface FCSDKPoint_config :FCSDKSingleton <NSCoding>

@property (nonatomic, copy) NSString *action_code;
@property (nonatomic, assign) NSInteger second;
@property (nonatomic, assign) NSInteger times;

@end
 
NS_ASSUME_NONNULL_END
